﻿using Abp.AutoMapper;
using Mt.Site.Application.Dto;
using Mt.Site.Core.ContentManagement.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.ContentManagement.Dto
{
    [AutoMapFrom(typeof(Content))]
    public class PagedContentSoftDelInput : PagedSortedAndFilteredInputDto
    {
        public Guid Id { get; set; } 
        /// <summary>
        /// 栏目ID
        /// </summary>
        [Required]
        public long MenuId { get; set; }
        public string Title { get; set; }
        public string MenuName { get; set; }
        public long AuxiliaryId { get; set; }

        public string Body { get; set; }    //正文一
        public string Body2 { get; set; }   //正文二
        public Guid? RelateId { get; set; }  //关联数据id

        [StringLength(50)]
        public string Key { get; set; }   //内容类型的customKey

        public int Hit { get; set; }    //点击量
        public int Order { get; set; }     //排序号

        public long PublishTime { get; set; }

        public bool IsHomeRecommend { get; set; }  //首页推荐

        public long Time1 { get; set; }  //为避免时区的差异，保存时间戳格式（单位为秒），0代表没有赋值

        public long Time2 { get; set; }


        public string Str1 { get; set; }

        public string Str2 { get; set; }

        public string Str3 { get; set; }

        public string Str4 { get; set; }

        public string Str5 { get; set; }

        public string Str6 { get; set; }

        public string Str7 { get; set; }

        public string Str8 { get; set; }

        public string Str9 { get; set; }

        public string Str10 { get; set; }

        public string Str11 { get; set; }

        public string Str12 { get; set; }

        public string Str13 { get; set; }

        public string Str14 { get; set; }

        public string Str15 { get; set; }

        public bool Bool1 { get; set; }
        public bool Bool2 { get; set; }
        public bool Bool3 { get; set; }
        public bool Bool4 { get; set; }

        public int Int1 { get; set; }
        public int Int2 { get; set; }
        public int Int3 { get; set; }
        public int Int4 { get; set; }
        public int Int5 { get; set; }

        public decimal Double1 { get; set; }
        public decimal Double2 { get; set; }
        public decimal Double3 { get; set; }
        public decimal Double4 { get; set; }
        public DateTime DeletionTime { get; set; }

        /// <summary>
        /// 自动同步（默认为ture）
        /// </summary>
        public bool AutoSynchronous { get; set; }

        public string CustomKey { get; set; }

        public string InfoState { get; set; }

        public DateTime? StartTime { get; set; }

        public DateTime? EndTime { get; set; }
    }
}
